<!-- target:edit -->
<form class="flex-cont grey-bg vertical-arrangement" name="editAccountForm" ui="type:m-panel">
    <!-- if:${id} -->
    <input ui="type:text" class="ui-hide" name="id" value="${id}"/>
    <!-- /if -->
    <!-- if:${relationId} -->
    <input ui="type:text" type="text" name="relationId" value="${relationId}" class="ui-hide">
    <!-- /if -->
    <div class="blank-24"></div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:账户类型;required:true">
        <!-- var:accountType = ${detail.accountType} || '1' -->
        <div class="edit-input placeholder" ui="type:NS.AccountTypeSelectEdit;title:账户类型;items:&{mao.info.baseInfo.finAccountType};name:accountType;value:${accountType};text:${accountType|parseBaseInfo('finAccountType')};"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:户名;required:true">
        <div ui="type:Text;value:;" class="edit-text">
            <input type="text" name="accountName" value="${detail.accountName}" placeholder="请输入"/>
        </div>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:账号;required:true">
        <div ui="type:Text;value:;" class="edit-text">
            <input type="text" name="accountCode" value="${detail.accountCode}" placeholder="请输入"/>
        </div>
    </div>


    <div class="edit-item" ui="type:mao.ui.InputGroup;label:开户银行;required:true">
        <div class="edit-input placeholder" ui="type:NS.BankCitySelectEdit;id:bank-${num};title:开户银行;placeholder:选择开户银行;items:&{mao.info.banks};view:account.single_banks_select;name:bankCode;value:${detail.bankCode};text:${detail.bankCode};"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:省市;required:true">
        <div class="edit-input placeholder" ui="type:NS.BankCitySelectEdit;id:bank-city-${num};title:省市;placeholder:选择省市;items:&{mao.info.bankCities};view:account.single_banks_select;name:cityFullCode;value:${detail.cityFullCode};text:${detail.affiliateCompanyName};"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:支行;required:true">
        <div class="edit-input placeholder" ui="type:mao.ui.SelectEdit;id:branch-bank-${num};title:支行;placeholder:选择支行;name:subBankCode;value:${detail.subBankCode};text:${detail.subBankCode};"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:备注;">
        <div ui="type:text;" class="edit-text">
            <input type="text" name="remark" value="${detail.remark}" placeholder="请输入"/>
        </div>
    </div>

    <div class="blank-24"></div>
</form>

<div class="bottom-box  align-center" id="calculate_total_${num}">
    <div class="ui-button ui-button-primary ui-button-full" ui="type:NS.SaveAccountBtn;">确定</div>
</div>

<!-- target:single_banks_select -->
<!-- // 银行单选 -->
<!-- var:num = mao.util.getTimeRandom() -->
<div class="search-cont-page select-container flex-page white-bg">
    <form ui="type:mao.ui.SearchText;notListView;cont:cont-${num}" name="brandProjectSearchForm">
        <input type="text" value="" name="searchContent" autocomplete="off" placeholder="搜索">
    </form>
    <div class="flex-cont grey-bg" ui="type:m-panel">
        <div class="blank-24"></div>
        <div class="select-items" id="cont-${num}">
            <!-- for: ${items} as ${item} -->
                <!-- if:${options.name} === 'cityFullCode' -->
                <!-- var:text = ${item.cityName} + ' / ' + ${item.provinceName} -->
                <div ui="type:mao.ui.SelectRadio;name:SelectRadio;item:&{item};value:${item.fullCode};text:${text};={ ${value} == ${item.fullCode} ? 'checked' : ''}" class="select-item">
                    <span>${text}</span>
                    <span class="icon"></span>
                </div>
                <!-- elif:${options.name} === 'subBankCode' -->
                <div ui="type:mao.ui.SelectRadio;name:SelectRadio;item:&{item};value:${item.code};text:${text};={ ${value} == ${item.code} ? 'checked' : ''}" class="select-item">
                    <span>${item.name}</span>
                    <span class="icon"></span>
                </div>
                <!-- else -->
                <!-- var:text = ${item.name} || ${item.text} -->
                <div ui="type:mao.ui.SelectRadio;name:SelectRadio;item:&{item};value:${item.code};text:${text};={ ${value} == ${item.code} ? 'checked' : ''}" class="select-item">
                    <span>${text}</span>
                    <span class="icon"></span>
                </div>
                <!-- /if -->
            <!-- /for -->
        </div>
        <div class="blank-24"></div>
    </div>
</div>